<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>医生工作站</title>
<script src="/HISSystem/js/jquery-1.6.2.min.js"></script>
<script src="/HISSystem/js/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" href="/HISSystem/css/ui-lightness/jquery-ui-1.8.16.custom.css"/>
<script type="text/javascript">
	$(function() {
		showTime();
		var $tabs=$("#tabs").tabs({
				cache:true,
				spinner:"正在加载。。。",
				collapsible:true,
				add:function(event,ui){
					$(ui.tab).after("<span class='ui-icon ui-icon-close'>Remove Tab</span>");
				}
		});
		$("#firstPage").tabs({
			cache:true,
			spinner:"正在加载。。。",
			collapsible:true
		});
		$("a").live("click",(function(){
			var label=$(this).text();
			var content=$(this).attr("name");
			if(!$("#tabsul:contains('"+label+"')").length>0){
				$tabs.tabs("add",content,label);
			}
			else{
				alert(label+"选项卡已打开!");
				var index = $("#tabsul li").index($("#tabsul li:contains('"+label+"')"));
				$tabs.tabs("select",index);
			}
		})
		);
		$( "#tabs span.ui-icon-close" ).live( "click", function() {
			var index = $("#tabsul li").index($( this ).parent());
			$tabs.tabs( "remove", index );
		}); 
	});
	function showTime(){
		var nt=new Date();
		var nowTime = nt.getYear()+"年 "+(nt.getMonth()+1)+"月 "+nt.getDate()+"日";
		$("marquee").append(nowTime);
	}
</script>
</head>
<body link="black" style="color: blue;">
<center>
	<table border="1" width="1250px" height="768px">
		<tr>
			<td valign="top" width="180px" align="left">
				<p><marquee behavior="scroll" style="font-weight: bolder;">张飞医生，您好！&nbsp;&nbsp;今天是 &nbsp;</marquee></p>
				<dl>
					<dt style="height: 30px">信息管理</dt>
					<dd style="height: 30px"><a href="#" name="WaitPatient.jsp">待诊患者</a></dd>
					<dd style="height: 30px"><a href="#" name="CheckedPatient.jsp">已诊患者</a></dd>
					<dd style="height: 30px"><a href="#" name="MethodManager.jsp">处方管理</a></dd>
					<dd style="height: 50px"><a href="#" name="AllPatient.jsp">已往患者就诊记录</a></dd>
					
					<dt style="height: 30px">安全设置</dt>
					<dd style="height: 30px"><a href="#" name="DoctorInfo.jsp">资料修改</a></dd>
					<dd style="height: 30px"><a href="#" name="UpdatePwd.jsp">密码修改</a></dd>
					<dd style="height: 30px"><a href="#" name="Unsign.jsp">注销</a></dd>
				</dl>
			 </td>
			<td valign="top">
				<div id="tabs">
					<ul id="tabsul">
						<li>
							<a href="#tab1">首页</a>
						</li>
					</ul>
					<div id="tab1" style="padding: 0px">
						<div id="firstPage">
							<ul>
								<li>
									<a href="DoctorSystemInfo.jsp">系统信息</a>
								</li>
								<li>
									<a href="MethodManager.jsp">处方管理</a>
								</li>
								<li>
									<a href="PatientReport.jsp">病历管理</a>
								</li>
								<li>
									<a href="doctor/Search.jsp">搜索查询</a>
								</li>
							</ul>
							<div id="firstPage1"></div>
							<div id="firstPage2"></div>
							<div id="firstPage3"></div>
							<div id="firstPage4"></div>
						</div>
					</div>
				</div>
			</td>
		</tr>
	</table>
</center>
</body>
</html>